package com.framework.yhbEntity.user;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 用户收货地址
 *
 */
@Data
public class YhbUserAddress {

    /**
     * 主键id
     */
    @TableId(type = IdType.INPUT)
    @ApiModelProperty(value = "地址主键,修改时用")
    private String addressId;
    /**
     * 省
     */
    @ApiModelProperty(value = "省" , required = true)
    private String prov;
    /**
     * 市
     */
    @ApiModelProperty(value = "市", required = true)
    private String city;
    /**
     * 区
     */
    @ApiModelProperty(value = "区", required = true)
    private	String area;
    /**
     * 姓名昵称
     */
    @ApiModelProperty(value = "姓名昵称", required = true)
    private String nick;
    /**
     * 详细地址
     */
    @ApiModelProperty(value = "详细地址", required = true)
    private	String info;
    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码", required = true)
    private String phone;
    /**
     * 是否默认 1：是 2：否
     */
    @ApiModelProperty(value = "是否默认 1：是 2：否", required = true)
    private	Integer isDefault;
    /**
     * 代理商id
     */
    @ApiModelProperty(hidden = true)
    private String userId;
    /**
     * 录入时间
     */
    @ApiModelProperty(hidden = true)
    @JsonFormat(pattern = "yyyy-mm-dd")
    private Date createDate;
    /**
     * 是否显示 1：显示 2：否
     */
    @ApiModelProperty(hidden = true)
    private Integer isShow;
}
